package com.kwq.designPattern.construct.proxy;

import lombok.Data;

/**
 * @author kangwanqiang
 * @date 2021/2/9
 * @description 实际对象
 */
@Data
public class RealImage implements Image {
    private String fileName;

    public RealImage(String fileName) {
        this.fileName = fileName; }

    @Override
    public void display() {
        System.out.println("Displaying " + fileName);
    }

}
